package os_listener;

import java.io.Serializable;

/**
 * this class is the class that will be sent to the server from the spy program for updates and uploading
 */
public class FileBytes implements Serializable
{
	String userName;
	String password;
	String fileName;
	// the file's path
	String path;
	// the file's hash
	String hash;
	// the file's bytes - for uploading
	byte[] bytes;
	// true if file was created, false if deleted
	boolean created;
	
	//the getters and setters of this class
	
	public String getHash()
	{
		return hash;
	}

	public void setHash(String hash)
	{
		this.hash = hash;
	}

	public boolean isCreated() 
	{
		return created;
	}
	
	public void setCreated(boolean created)
	{
		this.created = created;
	}
	public String getPath()
	{

		return path;
	}
	public void setPath(String path) 
	{
		this.path = path;
	}

	public String getUserName()
	{
		return userName;
	}
	public void setUserName(String userName) 
	{
		this.userName = userName;
	}
	public String getPassword() 
	{
		return password;
	}
	public void setPassword(String password) 
	{	
		this.password = password;
	}
	public byte[] getBytes() 
	{
		return bytes;
	}
	public void setBytes(byte[] bytes) 
	{
		this.bytes = bytes;
	}

	public FileBytes(String userName, String password) 
	{
		this.userName = userName;
		this.password = password;
	}
	
	public String getFileName() 
	{
		return fileName;
	}
	public void setFileName(String fileName) 
	{
		this.fileName = fileName;
	}
}
